package com.example.mcdonaldapplication.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.mcdonaldapplication.databinding.ActivityAdviceBinding

class AdviceActivity : AppCompatActivity() {
    private lateinit var binding:ActivityAdviceBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityAdviceBinding.inflate(layoutInflater)
        setContentView(binding.root)
        supportActionBar?.hide()

        binding.btnSubmit.setOnClickListener{
            val editAdvice = binding.editAdvice
            if (editAdvice.text.toString() != ""){
                editAdvice.text.clear()
                Toast.makeText(this, "提交成功", Toast.LENGTH_SHORT).show()
            }
        }
    }
}